home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
- <background>
- <id>3586</id>
- <filler1>0</filler1>
- <cantDelete> <true /> </cantDelete>
- <showPict> <true /> </showPict>
- <dontSearch> <false /> </dontSearch>
- <link rel="stylesheet" type="text/css" href="stylesheet_3262.css" />
- <part>
- <id>1</id>
- <type>button</type>
- <visible> <true /> </visible>
- <reserved5> 0 </reserved5>
- <reserved4> 0 </reserved4>
- <reserved3> 0 </reserved3>
- <reserved2> 0 </reserved2>
- <reserved1> 0 </reserved1>
- <enabled> <true /> </enabled>
- <rect>
- <left>0</left>
- <top>496</top>
- <right>512</right>
- <bottom>512</bottom>
- </rect>
- <style>popup</style>
- <showName> <true /> </showName>
- <highlight> <false /> </highlight>
- <autoHighlight> <true /> </autoHighlight>
- <sharedHighlight> <true /> </sharedHighlight>
- <family>0</family>
- <titleWidth>120</titleWidth>
- <selectedLines>
- <integer>6</integer>
- </selectedLines>
- <textAlign>left</textAlign>
- <font>Courier</font>
- <textSize>10</textSize>
- <textStyle>bold</textStyle>
- <name>* Action</name>
- <script>on mouseUp
- global globalChunk,globalFld,globalText
- lock messages
- lock screen
- set the cursor to busy
- put the selectedText of the target into theAction
- if ("$*$" is in "$" & theAction & "$") then
- answer "This function is achieved by a key combination."
- else if (theAction is "Create New Directory") then
- go bg "3"
- send ("doMenu " & quote & "New Card" & quote & "," & quote & "Edit" & quote) to HyperCard
- else if (theAction is "Create New List") then
- go bg "2"
- send ("doMenu " & quote & "New Card" & quote & "," & quote & "Edit" & quote) to HyperCard
- else if (theAction is "Create New Mailbox") then
- put createMailbox() into null
- else if (theAction is "Create New Message") then
- put createMessage() into null
- else if (theAction is "Create New Object") then
- go bg "2"
- send ("doMenu " & quote & "New Card" & quote & "," & quote & "Edit" & quote) to HyperCard
- else if (theAction is "Dial Telephone Number") then
- put dialTelephone() into null
- else if (theAction is "File into Mailbox") then
- put fileMailbox() into null
- else if (theAction is "Flip Ascending/Descending") then
- put flipThem(bg fld "Flip") into null
- else if (theAction is "Flip Envelope/Content") then
- put flipThem(bg fld "Flip") into null
- else if (theAction is "Flip Single/Double") then
- put flipThem(bg fld "Flip") into null
- else if (theAction is "Format Mail") then
- put formatMail() into null
- else if (theAction is "Go Index") then
- send ("closeCard") to this cd
- go cd "(Index)"
- send ("openCard") to this cd
- else if (theAction is "Index Filter In") then
- put indexFilter("in") into null
- else if (theAction is "Index Filter Out") then
- put indexFilter("out") into null
- else if (theAction is "Install Handler") then
- put installHandler(bg fld "Title") into null
- else if (theAction is "Make List") then
- put makeList() into null
- else if (theAction is "Make Mail") then
- put makeMail() into null
- else if (theAction is "Make Profile") then
- put makeProfile() into null
- else if (theAction is "Make Read Only:Directory (Family)") then
- put makeDirectory("Family") into null
- else if (theAction is "Make Read Only:Directory (Member)") then
- put makeDirectory("Member") into null
- else if (theAction is "Make Read Only:Envelope") then
- put makeEnvelope() into null
- else if (theAction is "Message-Passing Hierarchy Hide") then
- put messageHierarchy("hide") into null
- else if (theAction is "Message-Passing Hierarchy Show") then
- put messageHierarchy("show") into null
- else if (theAction is "Remove Space") then
- put removeSpace() into null
- else if (theAction is "Remove Space (*All*)") then
- push cd
- repeat with i = (the number of this cd + 1) to the number of cds
- go cd i
- put removeSpace() into null
- end repeat
- pop cd
- else if (theAction is "Show Credit") then
- put showCredit() into null
- else if (theAction is "Sort Cards") then
- sort cds of this stack ascending international by the short name of this cd
- put "" into bg fld "Text"
- else if (theAction is "Today's Date") then
- put todaysDate() & " | " into bg fld "Title"
- put setupCard() into null
- else if (theAction is "Update Index") then
- put "" into bg fld "Text"
- send ("openCard") to this cd
- else if (theAction is "Update Stack") then
- put updateStack() into null
- else if (word 1 of theAction is "Text") then
- delete word 1 of theAction
- select globalChunk
- if ((globalChunk is "") or (word 2 of globalChunk > word 4 of globalChunk)) then
- answer "Selected text is empty."
- else
- if (theAction is "> Add") then
- put textShift("right",">",globalText) into the selectedChunk
- else if (theAction is "> Remove") then
- put textShift("left",">",globalText) into the selectedChunk
- else if (theAction is "Do It") then
- send (globalText) to HyperCard
- else if (theAction is "Shift Left") then
- put textShift("left"," ",globalText) into the selectedChunk
- else if (theAction is "Shift Right") then
- put textShift("right"," ",globalText) into the selectedChunk
- else if (theAction is "Sort Ascending") then
- put textSort("Ascending",globalText) into the selectedChunk
- set the scroll of globalFld to 0
- else if (theAction is "Sort Descending") then
- put textSort("Descending",globalText) into the selectedChunk
- set the scroll of globalFld to 0
- else if (theAction is "ToDo Done") then
- put textToDoDone(globalFld,globalText) into null
- end if
- end if
- end if
- unlock messages
- unlock screen
- beep 1
- end mouseUp</script>
- </part>
- <part>
- <id>2</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <false /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>0</left>
- <top>16</top>
- <right>512</right>
- <bottom>496</bottom>
- </rect>
- <style>scrolling</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Courier</font>
- <textSize>10</textSize>
- <textStyle>plain</textStyle>
- <textHeight>13</textHeight>
- <name>Text</name>
- <script></script>
- </part>
- <part>
- <id>3</id>
- <type>field</type>
- <visible> <true /> </visible>
- <dontWrap> <false /> </dontWrap>
- <dontSearch> <false /> </dontSearch>
- <sharedText> <false /> </sharedText>
- <fixedLineHeight> <false /> </fixedLineHeight>
- <autoTab> <false /> </autoTab>
- <lockText> <false /> </lockText>
- <rect>
- <left>0</left>
- <top>0</top>
- <right>512</right>
- <bottom>16</bottom>
- </rect>
- <style>rectangle</style>
- <autoSelect> <false /> </autoSelect>
- <showLines> <false /> </showLines>
- <wideMargins> <false /> </wideMargins>
- <multipleLines> <false /> </multipleLines>
- <reservedFamily> 0 </reservedFamily>
- <titleWidth>0</titleWidth>
- <icon>0</icon>
- <textAlign>left</textAlign>
- <font>Courier</font>
- <textSize>10</textSize>
- <textStyle>bold</textStyle>
- <textHeight>13</textHeight>
- <name>Title</name>
- <script>on closeField
- put setupCard() into null
- pass closeField
- end closeField
-
- on commandKeyDown theKey
- if (theKey is "V") then
- send ("doMenu " & quote & "Paste Text" & quote & "," & quote & "Edit" & quote) to HyperCard
- put setupCard() into null
- end if
- pass commandKeyDown
- end commandKeyDown
-
- on exitField
- put setupCard() into null
- pass exitField
- end exitField</script>
- </part>
- <content>
- <layer>background</layer>
- <id>1</id>
- <text>Go Index
- Make List
- Remove Space
- Text Do It
- Text Shift Left
- Text Shift Right
- Text Sort Ascending
- Text Sort Descending
- Text ToDo Done</text>
- </content>
- <name>2</name>
- <script>on mouseWithin
- global globalChunk,globalFld,globalText
- put the selectedChunk into globalChunk
- put the selectedField into globalFld
- put the selectedText into globalText
- if ((there is a bg fld "Type") and (there is a bg fld "Value")) then
- put "bg fld " & quote & "Type" & quote & ",bg fld " & quote & "Value" & quote into theFlds
- put the scroll of last item of theFlds into theScroll
- if (theScroll ≠ the scroll of item 1 of theFlds) then
- repeat with i = 1 to (number of items in theFlds - 1)
- set the scroll of (item i of theFlds) to theScroll
- end repeat
- end if
- end if
- pass mouseWithin
- end mouseWithin</script>
- </background>
-